package com.ch.home.bean;

import java.util.ArrayList;

/**
 * 菜品做法
 * Created by CHEN on 2019/8/24.
 */
public class DishRecipes {


    private Integer recipesId;
    private Integer dishId;
    private String recipesContent;
    private Integer recipesStep;

    private ArrayList<String> url;
    private ArrayList<String> previewUrl;

    public DishRecipes() {
    }

    public DishRecipes(Integer recipesId, Integer dishId, String recipesContent, Integer recipesStep, ArrayList<String> url, ArrayList<String> previewUrl) {
        this.recipesId = recipesId;
        this.dishId = dishId;
        this.recipesContent = recipesContent;
        this.recipesStep = recipesStep;
        this.url = url;
        this.previewUrl = previewUrl;
    }


    public Integer getRecipesId() {
        return recipesId;
    }

    public void setRecipesId(Integer recipesId) {
        this.recipesId = recipesId;
    }

    public Integer getDishId() {
        return dishId;
    }

    public void setDishId(Integer dishId) {
        this.dishId = dishId;
    }

    public String getRecipesContent() {
        return recipesContent;
    }

    public void setRecipesContent(String recipesContent) {
        this.recipesContent = recipesContent;
    }

    public Integer getRecipesStep() {
        return recipesStep;
    }

    public void setRecipesStep(Integer recipesStep) {
        this.recipesStep = recipesStep;
    }

    public ArrayList<String> getUrl() {
        return url;
    }

    public void setUrl(ArrayList<String> url) {
        this.url = url;
    }

    public ArrayList<String> getPreviewUrl() {
        return previewUrl;
    }

    public void setPreviewUrl(ArrayList<String> previewUrl) {
        this.previewUrl = previewUrl;
    }

    @Override
    public boolean equals(Object o) {

        if (this == o) return true;
        if (o == null || getClass( ) != o.getClass( )) return false;

        DishRecipes that = (DishRecipes) o;

        if (recipesId != null ? !recipesId.equals(that.recipesId) : that.recipesId != null) return false;
        if (dishId != null ? !dishId.equals(that.dishId) : that.dishId != null) return false;
        if (recipesContent != null ? !recipesContent.equals(that.recipesContent) : that.recipesContent != null)
            return false;
        if (recipesStep != null ? !recipesStep.equals(that.recipesStep) : that.recipesStep != null) return false;
        if (url != null ? !url.equals(that.url) : that.url != null) return false;
        return previewUrl != null ? previewUrl.equals(that.previewUrl) : that.previewUrl == null;
    }

    @Override
    public int hashCode() {
        int result = recipesId != null ? recipesId.hashCode( ) : 0;
        result = 31 * result + (dishId != null ? dishId.hashCode( ) : 0);
        result = 31 * result + (recipesContent != null ? recipesContent.hashCode( ) : 0);
        result = 31 * result + (recipesStep != null ? recipesStep.hashCode( ) : 0);
        result = 31 * result + (url != null ? url.hashCode( ) : 0);
        result = 31 * result + (previewUrl != null ? previewUrl.hashCode( ) : 0);
        return result;
    }

    @Override
    public String toString() {
        return "DishRecipes{" +
                "recipesId=" + recipesId +
                ", dishId=" + dishId +
                ", recipesContent='" + recipesContent + '\'' +
                ", recipesStep=" + recipesStep +
                ", url=" + url +
                ", previewUrl=" + previewUrl +
                '}';
    }
}
